function fc_annotateLogin(data) {
    if ("http" != data.substring(0,4)) {
	return;
    }
    jQuery("body").append("<iframe onload='fc_annotateLoginCheck();' id='fc_anno_iframe' src='" + data + "' style='height:0px; width:0px; border:0px; display:none;' />");
}

function fc_annotateLoginCheck(data) {
    var elem = jQuery("#fc_anno_iframe");
    if (elem) {
	var ifr = elem.get(0);
	var str = ifr.contentDocument.location.href;
	if (str.search(/annologinsuccess/) >= 0) {
	    anno_login = true;
	}
    }
}
var anno_login = false;
jQuery(document).ready(function(){
	jQuery.get("/users/getannologin", '', fc_annotateLogin, 'text');
    });